package basic.com.liz.learn.design.abstractFactory;

import basic.com.liz.learn.design.factory.Sender;

public class AbstractFactoryTest
{
    
    public static void main(String[] args)
    {
        // 抽象工厂类
        AbstractMailFactory mail = new AbstractMailFactory();
        Sender s = mail.produce();
        s.send();
        AbstractSmsFactory sms = new AbstractSmsFactory();
        Sender ss = sms.produce();
        ss.send();
        
    }
    
}
